package com.spa.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spa.infrastructure.annotation.UrlParse;
import lombok.Data;

import java.util.Date;

/**
 * 技师表
 *
 * @author: lig
 * @date: 2023/12/6
 */
@Data
@TableName("s_massagist_onoff")
public class MassagistOnoffPO{
    /**
     *
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    @UrlParse
    private String workPhoto;

    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private String shopName;

    /**
     * 技师ID
     */
    @TableField(value = "massagist_id")
    private Long massagistId;

    /**
     * 时长 单位分钟
     */
    @TableField(value = "duration")
    private Long duration;
    /**
     * 上线时间
     */
    @TableField(value = "online")
    private Date online;
    /**
     * 下线时间
     */
    @TableField(value = "offline")
    private Date offline;
}
